<div id="main-content">
    <div id="main" class="main">
		<div class="user-hd">
			<h2>代理商管理>>代理商列表>>{$page_title}</h2>
			<a class="kehu" href="javascript:history.back();">
                返回
            </a>		
		</div>
        <div class="spin-cont">
            <table>
                <tr>
                    <th class="spin-tit" style="width: 160px;">主机名</th>
					<th class="spin-tit" style="width: 160px;">影院名称</th>
                    <th class="spin-tit" style="width: 160px;">开通时间</th>
                    <th class="spin-tit" style="width: 160px;">本期扣费截止日期</th>
                    <th style="width: 80px;">每期扣费总计</th>
                    <th style="width: 80px;">账户余额</th>
                    <th style="width: 80px;">影院状态</th>
                </tr>
                <volist name="list" id="vo">
                <tr>
                    <td class="spin-tit">{$vo.host_name}</td>
					<td class="spin-tit">{$vo.cinema_name}</td>
                    <td class="spin-tit">{$vo.join_time|date='Y-m-d', ###}</td>
                    <td class="spin-tit"><?php echo date("Y-m-d",$vo['last_cost_time']+($vo['deduct_period']*31*86400));  ?></td>
                    <td><?php echo $vo['hall_price']*$vo['buy_hall_count']*$vo['deduct_period'];  ?></td>
                    <td>{$vo.money}</td>
                    <td>
						<switch name="vo.status" >
							<case value="1"><font color="green">使用中</font></case>
							<case value="2"><font color="red">已停用</font></case>
						</switch>	
					</td>
                </tr>
                </volist>
            </table>
            <div class="page txt-center">
                {$page}
            </div>
        </div>
    </div>
</div>
<script language="javascript">
    function initPassword(url, message)
    {
        swal({
            title: message,
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#0C7AB9",
            cancelButtonText: "取消",
            confirmButtonText: "确定",
            closeOnConfirm: false
            },
            function(){
                $.ajax({
                    type:'post',
                    dataType:'json',
                    url: url,
                    success:function(data){
                        if (data.status==1) {
                            alertMessage(data.info, 1, 2);
                            if (data.url) {
                                delayGoToPage(data.url, 2000);
                            }
                        }else{
                            alertMessage(data.info, '', 2);
                        }
                    }
                });
            }
        );
    }
</script>